import http from "@/utils/http";

const api = {
  login(data) {
    return http.post(`/xy/login`, data);
  },
  getJinglist(params) {
    return http.post(`/xy/selectPageJingDetail`, params);
  },
  saveCqdd(data) {
    return http.post(`/xy/saveCqdd`, data);
  },
  saveJqz(data) {
    return http.post(`/xy/saveJqz`, data);
  },
  saveJing(data) {
    return http.post(`/xy/saveJing`, data);
  },
  saveJingDetail(data) {
    return http.post(`/xy/saveJingDetail`, data);
  },
  saveJingValue(data) {
    return http.post(`/xy/saveJingValue`, data);
  },
  saveJingDetailValue(data) {
    return http.post(`/xy/saveJingDetailValue`, data);
  },
  getCqddSelect() {
    return http.post(`/xy/getCqddSelect`, {});
  },
  getJqzSelect(data) {
    return http.post(`/xy/getJqzSelect`, data);
  },
  getJingSelect(data) {
    return http.post(`/xy/getJingSelect`, data);
  },
  getJingDetailSelect(data) {
    return http.post(`/xy/getJingDetailSelect`, data);
  },
  removeCqdd(data) {
    return http.post(`/xy/deleteCqdd`, data);
  },
  removeJqz(data) {
    return http.post(`/xy/deleteJqz`, data);
  },
  removeJing(data) {
    return http.post(`/xy/deleteJing`, data);
  },
  removeJingDetail(data) {
    return http.post(`/xy/deleteJingDetail`, data);
  },
  uploadFile(data) {
    return http.post(`/jz/image`, data);
  },
  exportExcel(params) {
    return http.downloadByPost(`/xy/exportJingDetail`, params);
  },
  selectPageJing(params) {
    return http.post(`/xy/selectPageJing`, params);
  },
  exportPageJingExcel(params) {
    return http.downloadByPost(`/xy/exportPageJing`, params);
  },
};

export default api;
